package com.example.springboot06db.entity;

import org.apache.ibatis.type.Alias;

/**
 * @author keyer
 * @Description : 描述
 * Created by cyd on 2021-05-25 16:38:20
 */
@Alias(value = "user")
public class User {

    private long id;
    private String name;
    /**
     * 这里需要用到typeHandler
     */
    private SexEnum sex;
    private String note;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public SexEnum getSex() {
        return sex;
    }

    public void setSex(SexEnum sex) {
        this.sex = sex;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", sex=" + sex +
                ", note='" + note + '\'' +
                '}';
    }
}
